

package com.maoshi.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.model.ShopWithdrawCash;
import com.maoshi.shop.common.util.PageParam;

/**
 * 商家提现申请信息
 *
 * @author Dwl
 * @date 2019-09-19 14:22:08
 */
public interface ShopWithdrawCashService extends IService<ShopWithdrawCash> {

    /**
     * 提现申请
     *
     * @param shopWithdrawCash
     */
    void withdrawCash(ShopWithdrawCash shopWithdrawCash);

    /**
     * 分页获取提现申请数据
     *
     * @param page
     * @param shopWithdrawCash
     * @return
     */
    IPage<ShopWithdrawCash> pageShopWithdrawCash(PageParam<ShopWithdrawCash> page, ShopWithdrawCash shopWithdrawCash);

    void auditWithdrawCash(Long withdrawCashId, ShopWithdrawCash shopWithdrawCash, Long userId, String openId);

    ShopWithdrawCash getShopWithdrawCashByShopId(Long shopId);
}
